<?php
/**
 * 订餐订单model
 */
class RestaurantOrderModel extends BaseModel{

	protected $tableName = 'restaurant_order';

	protected $_link = array(
        'RestaurantOrderGoods' => array(
            'mapping_type' => HAS_MANY,
            'mapping_name' => 'RestaurantOrderGoods',
            'class_name' => 'RestaurantOrderGoods',
            'foreign_key' => 'order_id',
        ),
		'RestaurantInfo' => array(
			'mapping_type' => BELONGS_TO,
			'mapping_name' => 'RestaurantInfo',
			'class_name' => 'RestaurantInfo',
			'foreign_key' => 'restaurant_id',
		),

	);
}